﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RayDetection : BaseManager<RayDetection>
{
    public RaycastHit MouseRay(Vector3 startDot, Vector3 endDot)
    {
        RaycastHit hitInfo;
        Physics.Raycast(startDot, endDot, out hitInfo, 1000, 1 << LayerMask.NameToLayer("SceneObject"), QueryTriggerInteraction.UseGlobal);
        return hitInfo;
    }
}
